<template>
    <div class="header">
        <i class="icon-arrow-left" @click="back"></i>
           <slot></slot>
           <img src="../assets/logo.png" alt="">
           <span>vue.js</span>
    </div>
</template>
<script>
  export default{
        methods:{
            back(){
                this.$router.go(-1)
            }
        }
  }
</script>
<style scoped>
    .header{
        height: 44px;
        width: 100%;
        background: #1c6132;
        position: fixed;
       
    }
    .header i {
        margin-left: 20px;
        line-height: 44px;
        font-size: 25px;
        color: white;
    } 
    .header span{
        line-height: 44px;
        color:white;
        font-weight:bold;
        font-size: 20px;
        display: inline-block;
        
    }
    .header img{
        /*width: 44px;*/
        height: 35px;
        display: inline-block;
        vertical-align: middle;
        margin-left: 30%;
    }
</style>